import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false


//轮播的全局组件
import Carousel from "components/Carousel"
Vue.component("Carousel",Carousel)

// 全局组件
 import Pagination from "components/Pagination"
Vue.component("Pagination",Pagination)
import TypeNav from "components/TypeNav"
Vue.component("TypeNav",TypeNav)


//轮播相关的样式
import "swiper/swiper-bundle.min.css"
//过渡样式
import "common/transition.less"
//路由环境
import router from "router";
//mock环境
import mock from "mock/mock"
//Vuex环境
import store from "store"
//定义总线
Vue.prototype.$bus = new Vue()
//引入vee-validate
import "util/validate"
//引入element-ui环境
import "util/element"
//引入vuelazy做图片懒加载
import Vuelazyload from 'vue-lazyload'
import loading from 'common/loading.gif'
Vue.use(Vuelazyload,{
    loading
})

// import http from "http";
// Vue.prototype.$http=http;
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
